import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/admin/system/config/list',
    method:'get',
    params:params
  })
}

export function updateDiscountInfo(uid,info) {
    return request({
      url:'/admin/system/config/update/'+uid,
      method:'post',
      data:info
    })
}
export function newDiscountInfo(info) {
    return request({
      url:'/admin/system/config/add',
      method:'post',
      data:info
    })
}
export function deleteDiscount(uid) {
    return request({
      url:'/admin/system/config/del/'+uid,
      method:'get'
    })
}

